package eerbaar.v2.gamebuilder.client.internal;

import eerbaar.game.IGame;
import eerbaar.v2.app.GameHelper;
import eerbaar.v2.app.menu.IMenuItem;

public class ResetLevelMenu implements IMenuItem {

    @Override
    public void execute() {

        IGame game = GameHelper.getGame();
        if (game != null) {
            game.term();
            game.init();
        }
    }

    @Override
    public String getText() {
        return "Reset Level";
    }
}
